<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Welcome extends CI_Controller {

	
	public function index()
	{
    $this->load->model('Blog_model');
    $articles=$this->Blog_model->get_last_ten_entires();
    foreach ($articles as  $article) {
     var_dump($article->title);
    }
	/*$data = array(
    'title' => 'My Title',
    'heading' => array("张三",20,1),
    'message' => 'My Message'
);

$this->load->view('Hello_world', $data);*/
}
}